#!/usr/bin/env bash

sysctl -w vm.max_map_count=262144
docker-compose up -d

# 休眠10秒，避免容器未完全启动
date;sleep 10s;date

chmod -R 777 ${PWD}/extensions
chmod -R 777 ${PWD}/logs
chmod -R 777 ${PWD}/data
chmod -R 777 ${PWD}/conf

docker-compose restart
